package com.woniu.punishcomplaintnotice.mapper;

import com.woniu.common.entity.Advice;
import com.woniu.common.entity.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PunishComplaintNoticeMapper {

    @Insert("insert into advice(title,advice_content,public_date,status,reply_content) values(#{title}," +
            "#{advice_content},#{public_date},#{status},#{reply_content})")
    public void addAdvice(Advice advice);
    @Insert("insert into message(title,content,release_time)")
    public void addMessage(Message message);


}
